﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Computer
    {
        private string brand;
        private IUSB u1;
        private IUSB u2;

        public string Brand
        {
            get { return this.brand; }
            set { this.brand = value; }
        }
        public IUSB U1
        {
            get { return this.u1; }
            set { this.u1 = value; }
        }
        public IUSB U2
        {
            get { return this.u2; }
            set { this.u2 = value; }
        }
        public void begin()
        {
            Console.WriteLine("正在开机...");
        }
        public void ReadDate()
        {
            u1.Read();
            u1.Write();
        }
        public void WriteDate()
        {
            u2.Read();
            u2.Write();
        }
        public void end()
        {
            Console.WriteLine("关机中...");
        }
    }
}
